package com.geekca.card;

public class TestCards {
    public static void main(String[] args) {
        GoldCard goldCard = new GoldCard(10000, "小王");
        SilverCard silverCard = new SilverCard(5000, "老六");

        System.out.println("小王加油500元:,实付: " + goldCard.pay(500) + "元" + "余额: " + goldCard.money + "元");
        System.out.println("老六加油500元: 实付: " + silverCard.pay(500) + "元" + "余额: " + silverCard.money + "元");

    }
}
